<template>
  <div class="container">
    <el-card :style="{maxHeight: contentHeight * 0.8 + 'px'}" class="box-card">
      <div class="title">储值卡会员绑定/解绑定</div>
      <el-alert :closable="false" center show-icon title="暂时使用储值卡查询页面中的绑定和解绑按钮" type="info"></el-alert>
    </el-card>
    <div class="home-btn">
      <div class="btn-item">
        <el-button icon="el-icon-back" round size="small" type="primary" @click="goBackHome"> 返 回</el-button>
      </div>
      <div class="btn-item">
        <el-button icon="el-icon-search" round size="small" type="info" @click="goCardInfo">卡查询</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import {mapGetters} from 'vuex'

export default {
  name: 'CardMemberBind',
  data () {
    return {}
  },
  computed: {
    ...mapGetters(['contentHeight', 'operator'])
  },
  methods: {
    goBackHome () {
      this.$router.push('/card')
    },
    goCardInfo () {
      this.$router.push('/card/info')
    }
  }
}
</script>

<style scoped>
.el-select {
  width: 100%;
}

.box-card {
  width: 60%;
  margin-left: 20%;
  position: absolute;
  top: 4%;
  overflow-y: auto;
}

.home-btn {
  position: absolute;
  top: 2%;
  left: 2%;
}

.btn-item {
  margin-bottom: 20px;
}

.title {
  text-align: center;
  padding-top: 1%;
  font-size: 1.6rem;
  color: #666;
}

.card-form {
  background: white;
  padding: 20px;
}
</style>